<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>layout 后台大布局 - Layui</title>
<link rel="stylesheet" href="/layui-v2.0.1/layui/css/layui.css">
<link rel="stylesheet" href="/css/admin.css">

</head>
<body>
   <form action="dochange" method="post" style="width:500px;margin-top: 100px;margin-left: 50px">
   <input type="hidden" name="id" value="<?php echo $res['id'];?>">
    <div class="layui-form-item">
      <label class="layui-form-label">管理员</label>
      <div class="layui-input-inline">
        <input type="text" name="username" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input" value="<?php echo $res['username']?>">
      </div>
    </div>

    <div class="layui-form-item">
      <label class="layui-form-label">密码</label>
      <div class="layui-input-inline">
        <input type="text" name="password" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input" value="<?php echo $res['password']?>">
      </div>
    </div>

    <div class="layui-form-item">
      <div class="layui-input-block">
        <button class="layui-btn" lay-submit="" lay-filter="demo1">确认修改</button>
      </div>
    </div>
 
   </form>
<script src="/layui-v2.0.1/layui/layui.js"></script>
<script>
//JavaScript代码区域
layui.use('element', function(){
  var element = layui.element;
  
});
</script>
</body>
</html>
<script>

</script>
<script>
layui.use(['layedit','jquery'], function(){
  var layedit = layui.layedit
  ,$ = layui.jquery;
  
  //构建一个默认的编辑器
  var index = layedit.build('LAY_demo1');






});
</script>
